﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Dragon
{    
    public partial class Layout : System.Web.UI.MasterPage
    {
        protected void lbtLogout_Click(object sender, EventArgs e)
        {
            Session["Username"] = null;
            Session["Fullname"] = null;
            Session["UserType"] = null;
            Response.Redirect("~/wfLogin.aspx");            
        }       

        protected void lbtAccount_Click(object sender, EventArgs e)
        {
            if (Session["Username"] == null)
            {
                Response.Redirect("~/wfLogin.aspx");
            }
            else
            {
                Response.Redirect("~/wfChangePassword.aspx");
            }
        }
    }
}